import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("---欢迎来到用户管理系统---");
        System.out.println("1.登录");
        System.out.println("2.注册");
        System.out.println("3.退出");
        System.out.println("请输入您要进行的操作编号：");
        Scanner scanner = new Scanner(System.in);
        int sc = 0;
        while (sc != 3) {
             sc = scanner.nextInt();
            switch (sc) {
                case 1:
                    Scanner username1 = new Scanner(System.in);
                    System.out.println("请输入用户名：");
                    String name1 = username1.nextLine();
                    Scanner password1 = new Scanner(System.in);
                    System.out.println("请输入密码：");
                    String pwd1 = password1.nextLine();

                    break;
                case 2:
                    Scanner username2 = new Scanner(System.in);
                    System.out.println("请定义用户名：");
                    String name2 = username2.nextLine();
                    Scanner password2 = new Scanner(System.in);
                    System.out.println("请输入密码：");
                    String pwd2 = password2.nextLine();
                    break;
                case 3:
                    System.out.println("谢谢使用！");
                    break;
                default:
                    System.out.println("请正确输入!");
                    break;
            }
            System.out.println("请输入您要进行操作的序号：");
//            sc = scanner.nextInt();
        }
        scanner.close();
    }
}